# -*- coding: UTF-8 -*-
import re


def underline_variable(name):
    return re.sub(r'(?<!^)(?=[A-Z])', '_', name).lower()